<h1>Listing items</h1>

<table>
  <tr>
    <th>Item name</th>
    <th>Item description</th>
    <th>Global item</th>
    <th>Firm</th>
  </tr>

<% @items.each do |item| %>
  <tr>
    <td><%=h item.item_name %></td>
    <td><%=h item.item_description %></td>
    <td><%=h item.global_item %></td>
    <td><%=h item.firm %></td>
    <td><%= link_to 'Show', item %></td>
    <td><%= link_to 'Edit', edit_item_path(item) %></td>
    <td><%= link_to 'Destroy', item, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New item', new_item_path %>